@model dynamic

@{
    Script.Require("jQuery").AtHead();
    Script.Require("colorbox").AtHead();
    Style.Require("colorbox.default").AtHead();
}

@using (Script.Foot()) {
    <script type="text/javascript">
        $(function () {
            $('.enlarger').live("click", function () {
                var colSrc = $(this).attr("src");
                var elemental = "<img src='" + colSrc +  "' />";
                $.colorbox({ html: elemental, scrolling : false });
            });
        });
    </script>
}